/*
 * @Author: wuzhouhai wzh200x@126.com
 * @Date: 2024-07-10 14:28:16
 * @LastEditors: wuzhouhai wzh200x@126.com
 * @LastEditTime: 2024-07-10 14:29:37
 * @FilePath: \dwys_web\extensions\phoenix-plugin-client\assets\core\interface\iMessage.ts
 * @Description: 
 */
import { IMessageHandle } from "./IMessageHandle";

export interface IMessage{
    opcode: number;
    messageEntity: any;  // protobuf实体
    GetOpcode(): number;
    Encode(): Uint8Array;
    Decode(data: Uint8Array): void;
    GetMessageEntity<T>(): T;
    CheckIsS2C(): boolean;
}